package com.hmall.user.servicr;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.user.pojo.Address;
import com.hmall.user.pojo.User;

import java.util.List;

/**
 * @author 29143
 */

public interface UserService extends IService<Address> {

    /***
     * 根据用户id查询地址列表
     * @param
     * @return
     */
     List<Address> findAddressListById();

    /**
     * 根据addressId查询地址信息
     * @param addressId
     * @return
     */
    Address findAddressById(Long addressId);

    User findUserById(Long userId);

    void payMoney(Long userId, Long money);


}
